package cn.com.ejiakanghu.dto;

import org.linlinjava.litemall.db.domain.AgedmallCloudHouse;
import org.linlinjava.litemall.db.domain.AgedmallStore;

/**
 * @author wj
 * @date 2021/11/18 11:05
 */
public class StoreInfoDto {

    private Integer id;

    private String name;

    private String telPhone;

    private Integer isSelf;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public Integer getIsSelf() {
        return isSelf;
    }

    public void setIsSelf(Integer isSelf) {
        this.isSelf = isSelf;
    }

    public StoreInfoDto(Integer id, String name, String telPhone, Integer isSelf) {
        this.id = id;
        this.name = name;
        this.telPhone = telPhone;
        this.isSelf = isSelf;
    }


    public StoreInfoDto(AgedmallStore store) {
        this.id = store.getId().intValue();
        this.name = store.getStoreName();
        this.telPhone = "4006710500";
        this.isSelf = store.getOwnOptFlg().intValue();
    }

    public StoreInfoDto(AgedmallCloudHouse cloudHouse) {
        this.id = cloudHouse.getId();
        this.name = cloudHouse.getName();
        this.telPhone = "4006710500";
        this.isSelf = 1;
    }

    public StoreInfoDto() {
    }
}
